﻿@model IEnumerable<MyPSDALayer.SiteDB>   

<p>
    @Html.ActionLink("新增", "Create")
</p>
<table class="tableBorder">
    <tr>       
        <th>
            @Html.DisplayNameFor(model => model.WorkTime)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Phone)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.QQ)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Email)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IS_Current)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Field_1)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Field_2)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Field_3)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Field_4)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Field_5)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Field_6)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>          
        <td>
            @Html.DisplayFor(modelItem => item.WorkTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Phone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.QQ)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Email)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IS_Current)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Field_1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Field_2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Field_3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Field_4)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Field_5)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Field_6)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.ID }) |
            @Html.ActionLink("详细", "Details", new { id=item.ID }) |
            @Html.ActionLink("删除", "Delete", new { id=item.ID })
        </td>
    </tr>
}

</table>
